package com.huatai.dataservice.panel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 消息队列日志记录表
 * </p>
 *
 * @author lxc
 * @since 2022-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_message_log_dd")
@ApiModel(value="TbMessageLogDd对象", description="消息队列日志记录表")
public class TbMessageLogDd implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	@ApiModelProperty(value = "接收时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss SSS")
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss SSS",
		timezone = "GMT+8"
	)
	private Date datatime;

	@TableField(value = "queueType")
	@ApiModelProperty(value = "消息类型：RBMQ、KAFKA")
	private String queueType;

	@TableField(value = "messageType")
	private String messageType;

	@TableField(value = "topic")
	@ApiModelProperty(value = "主题名称")
	private String topic;

	@TableField(value = "requestUrl")
	@ApiModelProperty(value = "资源地址")
	private String requestUrl;

	@TableField(value = "status")
	@ApiModelProperty(value = "接收状态")
	private String status;

	@TableField(value = "detail")
	@ApiModelProperty(value = "详细内容")
	private String detail;

	@TableField(value = "remark")
	@ApiModelProperty(value = "说明")
	private String remark;

    /*@ApiModelProperty(value = "消息类型：RBMQ、KAFKA")
    private String queueType;

    private String messageType;

    @ApiModelProperty(value = "主题名称")
    private String topic;

    @ApiModelProperty(value = "资源地址")
    private String requestUrl;

    @ApiModelProperty(value = "接收状态")
    private String status;

    @ApiModelProperty(value = "详细内容")
    private String detail;

    @ApiModelProperty(value = "说明")
    private String remark;*/


}
